// 用于统一管理整个项目全部的接口
import http from "./http";

// 首页的最受欢迎接口
export const getRatedApi = (params) => http.get("/rated/list", params);

// 首页的电影列表
export const getMovieApi = (params) => http.get("/movies/list", params);

// 首页上拉加载更多接口
export const getMovieMoreApi = (data) => http.post("/movies/more", data);

// 电影详情接口
export const getDetailDataApi = (data) => http.post("/movies/detail", data);

// 城市选择接口
export const getCityListApi = (params) => http.get("/area/list", params);
